package cn.always.xiajia.framework.rpc.core.web;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.filter.OncePerRequestFilter;

/**
 * 环境的 {@link javax.servlet.Filter} 实现类 当有 tag 请求头时，设置到 {@link EnvContextHolder}
 * 的标签上下文
 * 
 * @author xgj
 *
 */
public class RpcWebFilter extends OncePerRequestFilter {

	@Override
	protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
			throws ServletException, IOException {
		// 移除前端头参数的某个参数防止前端模拟访问@FeignClient
		System.out.println("66666");

		chain.doFilter(request, response);
	}

}
